import axios from 'axios';

//获取所有待办事项标题
export const getTodoList = params => {
    return axios.get('/todo/list', {
        params: params
    });
};
//添加待办事项标题
export const addTodo = params => {
        return axios.post('/todo/addTodo', params).then(res => res.data);
    }
    //新增一个请求出现待办单项列表的数据接口
export const getTodo = params => {
    return axios.get('/todo/listId', {
        params: params
    });
};
//新增一个请求新增添加待办事项的数据接口
export const addRecord = params => {
    return axios.post('/todo/addRecord', params).then(res => res.data);
};